<div class="layui-header">
    <div class="layui-logo layui-hide-xs layui-bg-black">
      <a href="#{:url('Index/welcome')}" class="frame-url" style="color: #fff;font-size:20px"
        data-href="{:url('Index/welcome')}"
      >小木管理系统</a>
    </div>

    <ul class="layui-nav layui-layout-right">
      <li class="layui-nav-item layui-hide layui-show-sm-inline-block">
        <a href="javascript:;">
          <img src="//unpkg.com/outeres@0.0.10/img/layui/icon-v2.png" class="layui-nav-img">
          {:session('admin.nickname')}
        </a>
        <dl class="layui-nav-child">
          <dd><a href="javascript:;">基本资料</a></dd>
          <dd><a href="#{:url('/admin/system.admin/password')}" data-href="{:url('/admin/system.admin/password')}" class="frame-url">修改密码</a></dd>
          <dd><a href="javascript:;" id="loginout">登出</a></dd>
        </dl>
      </li>
      <li class="layui-nav-item" lay-header-event="menuRight" lay-unselect>
        <a href="javascript:;">
          <i class="layui-icon layui-icon-more-vertical"></i>
        </a>
      </li>
    </ul>
  </div>

  <script>
    $(function(){
      $("#loginout").on("click",function(){
        $.post("{:url('/admin/Login/out')}",function(res){
          console.log(res);
          window.location.href=res.url;
        })
      })
    })
  </script>